export default [
  {
    name: '登录',
    path: '/login',
    layout: false,
    component: './Login',
  },
  {
    path: '/',
    component: './index',
    layout: false,
    routes: [
      {
        name: '公告管理',
        // icon: 'TeamOutlined',
        path: '/announcement',
        component: './announcement',
      },
      {
        name: '订单管理',
        // icon: 'TeamOutlined',
        path: '/order',
        component: './order',
      },
      {
        name: '用户管理',
        // icon: 'TeamOutlined',
        path: '/user',
        component: './user',
      },
      {
        name: '评论区管理',
        // icon: 'TeamOutlined',
        path: '/readview',
        component: './readview',
      },
      {
        name: '名师管理',
        // icon: 'TeamOutlined',
        path: '/teacher',
        component: './teacher',
      },
      {
        name: '客户列表',
        // icon: 'TeamOutlined',
        path: '/customer',
        component: './customer',
      },
      {
        name: '兼职工作记录',
        // icon: 'TeamOutlined',
        path: '/disseminate',
        component: './disseminate',
      },
      {
        name: '记录上传',
        // icon: 'TeamOutlined',
        path: '/uploadRecords',
        component: './uploadRecords',
      },
      {
        name: '开关管理',
        // icon: 'TeamOutlined',
        path: '/switch',
        component: './switch',
      },
      {
        name: '公司信息管理',
        // icon: 'TeamOutlined',
        path: '/system',
        component: './system',
      },
      {
        path: '/',
        redirect: '/announcement', // 重定向到 /home
      },
    ],
  }
];
